package com.dl.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author by 党桢乐 on 2020/5/14
 */
@Component
@RabbitListener(queues = "3dl")
public class threeConsumer {
    @RabbitHandler
    public void getMessage(String message){
        System.out.println("生产者发来了信息，我是三号："+message);
    }

}
